package com.gitee.ly;

import com.gitee.ly.model.*;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.HeaderMap;
import retrofit2.http.Headers;
import retrofit2.http.POST;

import java.util.List;
import java.util.Map;

public interface ServerApi {
    @POST("registry")
    @Headers("Content-Type: application/json")
    Call<JsonResult<String>> registry(@HeaderMap Map<String, String> headers, @Body RegistryBody body);

    @POST("offline")
    @Headers("Content-Type: application/json")
    Call<JsonResult<String>> offline(@HeaderMap Map<String, String> headers, @Body OffLineBody body);

    @POST("findCanUse")
    @Headers("Content-Type: application/json")
    Call<JsonResult<List<ServiceInfo>>> findCanUse(@HeaderMap Map<String, String> headers, @Body FindBody body);
}
